﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_productionTorque")]
    public class ProductionTorqueEntity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("RecordId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 工件编号
        /// </summary>
        [Required]
        public string ProductionId { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [Required]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 主轴扭矩
        /// </summary>
        [Required]
        public float Torque { get; set; }

        /// <summary>
        /// 程序号
        /// </summary>
        public string Program { get; set; }

        /// <summary>
        /// 变更时刻
        /// </summary>
        [Required]
        public DateTimeOffset UpdateTime { get; set; }
    }
}
